﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:page="urn:page">
    <xsl:output method="html" encoding="utf-8"/>
  <xsl:param name="rowcount"/>			<!--数据库总记录数-->
  <xsl:param name="maxrow"/>				<!--每页记录数-->
  <xsl:param name="curpage"/>				<!--当前页码-->
  <xsl:param name="param"/>					<!--引入 param 参数-->
  <xsl:param name="templatename"/>	<!--Label.xml 模块名称-->
  <xsl:param name="orderby"/>				<!--Label.xml orderby 参数-->
  <xsl:param name="where"/>					<!--Label.xml where 参数-->
  <xsl:param name="runtime"/>				<!--运行时长-->
  <xsl:template match="/">
    <div class="titleA">
      <xsl:if test="count(rows/row)=0">
        新增
      </xsl:if>
      <xsl:if test="count(rows/row)>0">
        修改
      </xsl:if>
      系统菜单
    </div>
    <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#E0E0E0" style="text-align:left" >
      <form id="form1" name="form1" method="post" action="">
        <tbody>
          <tr bgcolor="#ffffff">
            <td width="120" align="left">编码</td>
            <td align="left"><xsl:value-of select="rows/row/MID"/></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">菜单名称<font color="#ff0000">*</font></td>
            <td align="left" width="350"><input class="input" id="MText" maxlength="24" size="25" name="MText" >
              <xsl:attribute name="value"><xsl:value-of select="rows/row/MText"/></xsl:attribute>
              </input>
              <font color="#9e9e9e">&nbsp;12个汉字以内</font></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">图标</td>
            <td align="left"><input class="input" id="MIco" maxlength="24" size="25" name="MIco">
              <xsl:attribute name="value"><xsl:value-of select="rows/row/MIco"/></xsl:attribute>
              </input></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">链接<font color="#ff0000">*</font></td>
            <td align="left"><input class="input" id="MURL" maxlength="50" size="50" name="MURL" >
              <xsl:attribute name="value"><xsl:value-of select="rows/row/MURL"/></xsl:attribute>
              </input></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">上级菜单<font color="#ff0000">*</font></td>
            <td align="left"><select class="inputbox" id="TopID"  name="TopID">
                <option value="0">===设为根菜单===</option>
                <xsl:value-of select="page:xLoadList('上级菜单选择',0,string(rows/row/TopID))" disable-output-escaping="yes"/>
              </select>
             </td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">打开方式<font color="#ff0000">*</font></td>
            <td align="left"><select class="inputbox" id="MTarget" 
      style="WIDTH: 60px" name="MTarget">
                <option value=""></option>
                <option value="iWindow" >
                <xsl:if test="rows/row/MTarget='iWindow'">
                  <xsl:attribute name="selected">1</xsl:attribute>
                </xsl:if>
                默认</option>
                <option value="$new$">
                <xsl:if test="rows/row/MTarget='$new$'">
                  <xsl:attribute name="selected">1</xsl:attribute>
                </xsl:if>
                新窗口</option>
                <option value="$sub$">
                <xsl:if test="rows/row/MTarget='$sub$'">
                  <xsl:attribute name="selected">1</xsl:attribute>
                </xsl:if>
                子目录</option>
              </select></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">是否启用<font color="#ff0000">*</font></td>
            <td align="left"><select class="inputbox" id="bUseFlag" style="WIDTH: 50px" name="bUseFlag">
                <option value="0">
                <xsl:if test="rows/row/bUseFlag=0">
                  <xsl:attribute name="selected">1</xsl:attribute>
                </xsl:if>
                禁用</option>
                <option value="1" >
                <xsl:if test="rows/row/bUseFlag=1">
                  <xsl:attribute name="selected">1</xsl:attribute>
                </xsl:if>
                启用</option>
              </select>
              <font color="#9e9e9e">默认为“不限”</font></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">分隔符<font color="#ff0000">*</font></td>
            <td align="left"><label>
              <input type="radio" name="bHadLine" value="1" >
              <xsl:if test="rows/row/bHadLine=1">
                <xsl:attribute name="checked">1</xsl:attribute>
              </xsl:if>
              </input>
              显示</label>
              &nbsp;&nbsp;
              <label>
              <input type="radio" name="bHadLine" value="0"  >
              <xsl:if test="rows/row/bHadLine=0">
                <xsl:attribute name="checked">1</xsl:attribute>
              </xsl:if>
              </input>
              不显示</label></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">参数</td>
            <td align="left"><font color="#9e9e9e">
              <input class="input" id="cParameter" maxlength="250" size="60" name="cParameter">
              <xsl:attribute name="value"><xsl:value-of select="rows/row/cParameter"/></xsl:attribute>
              </input>
              请保持在100个字以内</font></td>
          </tr>
          <tr bgcolor="#ffffff">
            <td align="left">&nbsp;</td>
            <td height="40" align="left"><input name="f" type="hidden" value="系统菜单列表" /><input class="btnD" id="Submit1" type="button" value="保存" name="Submit1">
              <xsl:attribute name="onclick">if(TM.saveContentCmd(this,form1,0)==1){TM.pList();}</xsl:attribute>
              </input>
              &nbsp; &nbsp;
              <input class="btnD" type="button" value="取消" name="button" onclick="TM.closeTab()"/>
              &nbsp; &nbsp;
              <input name="editID" type="hidden" id="editID">
              <xsl:attribute name="value"><xsl:value-of select="rows/row/MID"/>
              <xsl:if test="count(rows/row)=0">
                0
              </xsl:if>
              </xsl:attribute>
              </input></td>
          </tr>
        </tbody>
      </form>
    </table>
  </xsl:template>
</xsl:stylesheet>
